package com.example.minzhengtong.ui.add

import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.example.minzhengtong.R
import com.example.minzhengtong.base.BaseA
import com.example.minzhengtong.databinding.ActivityGjjKfBinding
import com.example.minzhengtong.ui.adapter.AdapterKef
import com.example.minzhengtong.utils.WUtils

/**
 * created by WY on 2021/6/19.
 * 小闽客服
 */
class GJJKfA : BaseA() {

    companion object{
        fun enterThis(context: Context){
            val intent = Intent(context, GJJKfA::class.java)
            context.startActivity(intent)
        }
    }

    private lateinit var binding : ActivityGjjKfBinding
    private val mData = mutableListOf("公积金","健康码","查询","福建八闽健康码")
    private val mAdapter by lazy {
        AdapterKef(baseContext, mData)
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityGjjKfBinding.inflate(layoutInflater)
        overridePendingTransition(0,0)
        setContentView(binding.root)
        setToolBarVisiabale(false)
        initImmerBar(true, R.id.title_bar)

        binding.recyclerView.apply {
            layoutManager = WUtils.horManager(baseContext)
            adapter = mAdapter
        }

    }

    override fun finish() {
        super.finish()
        overridePendingTransition(0,0)
    }

}